import Layout from '@/layout'

/*export default [{
	path:'/wel',
	component:Layout,
	redirect:'/wel/index',
	children: [{
		path:'index',
		name:'首页',
		meta:{
			affix:true
		},
		component: () => import('@/views/wel')
	}]
}]*/

export default [{
	path:'/wel',
	component:Layout,
	redirect:'/wel/index',
	children: [{
		path:'index',
		name:'全局',
		meta:{
			isTab:true,
			affix:true
		},
		component: () => import('@/views/wel')
	}]
},{
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
	    path: 'index',
	    name: '用户信息',
	    meta: {
	      	i18n: 'info'
	    },
	    component: () => import('@/views/user/info')
  	}, {
	    path: 'setting',
	    name: '个人设置',
	    meta: {
	      	i18n: 'setting'
	    },
	    component: () => import('@/views/user/setting')
  	}]
 }, {
	path:'/substance',
	component:Layout,
	redirect:'/substance/publish',
	children: [{
		path:'publish',
		name:'发布内容',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/substance/publish')
	},
	{
		path:'list',
		name:'内容列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/substance/list')
	},{
		path:'articleTag',
		name:'文章分类',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/substance/articleTag')
	},{
		path:'test',
		name:'富文本测试',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/substance/edit-test')
	}]
},{
	path:'/account',
	component:Layout,
	redirect:'/account/bind',
	children: [{
		path:'bind',
		name:'账号授权',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/account/bind')
	},
	{
		path:'list',
		name:'账号列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/account/list')
	}]
},{
	path:'/dataAnalysis',
	component:Layout,
	redirect:'/dataAnalysis/index',
	children: [{
		path:'index',
		name:'数据分析',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/dataAnalysis/index')
	}]
},{
	path:'/incomeAnalysis',
	component:Layout,
	redirect:'/incomeAnalysis/index',
	children: [{
		path:'index',
		name:'收益分析',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/incomeAnalysis/index')
	}]
},{
	path:'/material',
	component:Layout,
	redirect:'/material/index',
	children: [{
		path:'index',
		name:'素材库',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/material/index')
	}]
},{
	path:'/post-info',
	component:Layout,
	redirect:'/post-info/index',
	children: [{
		path:'index',
		name:'供需发布',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/post-info/list')
	},{
		path:'post',
		name:'发布需求',
		meta:{
			isTab:false,
		},
		component: () => import('@/views/post-info/post')
	}]
},{
	path:'/post-info',
	component:Layout,
	redirect:'/post-info/index',
	children: [{
		path:'index',
		name:'供需发布',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/post-info/list')
	},{
		path:'post',
		name:'发布需求',
		meta:{
			isTab:false,
		},
		component: () => import('@/views/post-info/post')
	}]
},
{
	path:'/data',
	component:Layout,
	children:[{
		path:'chart',
		name:'图形化显示',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/data/chart')
	}]
},
{
	path:'/equipment',
	component:Layout,
	children: [{
		path:'deviceType',
		name:'设备分类',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/equipment/deviceType')
	},{
		path:'equipment',
		name:'设备管理',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/equipment/equipment')
	},
	// {
	// 	path:'group',
	// 	name:'分组管理',
	// 	meta:{
	// 		isTab:true,
	// 	},
	// 	component: () => import('@/views/equipment/group')
	// },
	{
		path:'directive',
		name:'指令管理',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/equipment/directive')
	},{
		path:'camera',
		name:'摄像头管理',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/equipment/camera')
	}]
},{
	path:'/farm',
	component:Layout,
	redirect:'/farm/farm',
	children: [{
		path:'farm',
		name:'农场列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/farm/farm')
	},{
		path:'production',
		name:'农产品列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/farm/production')
	},{
		path:'farmAct',
		name:'农事列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/farm/farmAct')
	},{
		path:'farmgis',
		name:'农场地块GIS',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/farm/farmGis')
	}]
},{
	path:'/agri-product',
	component:Layout,
	redirect:'/agri-product/goods-cate',
	children: [{
		path:'goods-cate',
		name:'商品服务分类',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/agri-product/goods-cate')
	},{
		path:'goods-type',
		name:'商品服务类型',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/agri-product/goods-type')
	},{
		path:'goods-list',
		name:'商品列表',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/agri-product/goods-list')
	}]
},{
	path:'/scm',
	component:Layout,
	children: [{
		path:'supplier',
		name:'供应商',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/scm/supplier')
	},
	{
		path:'customer',
		name:'客户',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/scm/customer')
	}]
},{
	path:'/track',
	component:Layout,
	children: [{
		path:'farm-info',
		name:'农事信息',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/farm-info')
	},{
		path:'raw-in',
		name:'原料入库',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/raw-in')
	},{
		path:'manufact-process',
		name:'制造工艺',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/manufact-process')
	},{
		path:'quality-inspection',
		name:'质检记录',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/quality-inspection')
	},{
		path:'logistics-info',
		name:'物流信息',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/logistics-info')
	},{
		path:'memberManage',
		name:'会员管理',
		meta:{
			isTab:true,
		},
		component: () => import('@/views/track/logistics-info')
	}]
}]


